Added logger
Added logging util
More logging for the slave