return when there are errors
Make hasher a local variable