Added parenthesis testing on the input expression
Removed inefficient IP tracing on logs
Added time-measurement on logs
Using my custom log function