Adding in $log decorator