Added assertion, fixed formatting.