Initial working version of Task queue