Doesn't contain assert, should be refactored or removed