Added asserts to checks arguments