Got rid of unneccessary helper function.