Added final set of IF statements, currently aget is implemented but causes an llvm crash during compilation