Made propulsion algorithm a functional expression