Debugged. Added more logging beautifications.