Removes whitespace
Updates logging