Errors corrected after testing