Reverted predicate parser to sort input to feed into enviroment