Implemented DEFINE for certain variables. Hopefully I got them all.