Made recursive BlockStatements structure to simplify filtering