Improved client code! logging button added. Also using backround workers