Update getAssignmentStatements

The function now works but it does not produce anything. Will begin
debugging it.