Finished writing code for expression handling. Still need to test.