Added basic worker logic