It works, but not refactored.