Fixed statements, took out filter for testing, and closed an open parenthesis