Cleaning Huge Function