Got rid of unnecessary Recursion