Splitting up the code for readability and so that users have automatic updating