Implemented if statements.