Implemented select statement.