Foundations supporting the main and auxiliary engines have to transfer the weight of the relevant machine, the induced vibrations and resulting stresses into the ship's structure. The foundations have to keep the engines in place when the ship is rolling and or pitching and have to be stiff, to maintain a proper alignment of engine and propeller shafting. All machinery is properly bolted down and provided with sideways supports to secure their position in the heaviest ship's motions.