Added messages to assert statements.