Remove comments and fix function parameter for generating hash.