Removed logpretty function with external dependency