Incredibly hacky evaluate implementation