Added simple assertion
Added type to throw checks