Added more asserts

Added some more asserts to ensure the user can not do things that will
result in incorrect results.