Added scheduler
Fixed applicationContext problem (now actually stores it in the service bean)