Asserts in application code makes me uncomfortable. Why is this here?