Added missing assert, did some formating