Engine monitoring and control