Inlined timezone variable
Removed unused exception handler
Simplified function by removing unnecessary variables
Removed unused var
Printing debug info to console only if compiling for debug