Structural engineering is a field of engineering dealing with the analysis and design of structures that support or resist loads. Structural engineering is usually considered a specialty within civil engineering, but it can also be studied in its own right. Structural engineers are most commonly involved in the design of buildings and large nonbuilding structures but they can also be involved in the design of machinery, medical equipment, vehicles or any item where structural integrity affects the item's function or safety. Structural engineers must ensure their designs satisfy given design criteria, predicated on safety (e.g. structures must not collapse without due warning) or serviceability and performance (e.g. building sway must not cause discomfort to the occupants). Buildings are made to endure massive loads as well as changing climate and natural disasters.