Streamline assertion code