An application to control a spark