Modified code so that luna will be fired only if flywheel is spinning