Start Refactoring functions.