Changed the parameters of valid_body so it is easier to use, and looks prettier