Fixed white spaces and debug logs.