Changed things slightly

Put the code in powerup.