Add logging support, remove sleep from tick polling