Broke up different checks with comment blocks to allow for easier reading.