Setup applications as services
Change sleep seconds to variable