This liability and the desire to protect residents has motivated cities to adopt and enforce building codes that specify standards and practices for electrical systems (as well as other departments such as water and fuel-gas systems).