Refactor functions and help.