Smart engines