Added logger class for debugging purposes.