Use less functions
Added Excludes and Made the final func