Removed unnecessary logging.
Added funtions implementations.
Added statistics implementation.