The only reason I made this its own method was to make the code more readable.