I had to check bitlength and expiration to avoid errors that arise when passing None to the modifier functions, which haven't been added to create_order() yet.