 The diaphragm is connected to the needle valve and as it moves inward it opens the needle valve to admit more fuel, thus replenishing the fuel as it is consumed.As fuel is replenished the diaphragm moves out due to fuel pressure and a small spring, closing the needle valve.A balanced state is reached which creates a steady fuel reservoir level, which remains constant in any orientation.