Little change
Added log/error functions