Replacing unecessary reference types with value types
Putting back some time measurement code, these won't be outputted anyway in WARN log level
Tiny syntactic modification to clarify bit operations.