Application does not run in background