Added code for async background jobs
Addedchanges to in memeory queue implementation