Adds log method

Removed sort in log and other files.