Needed to set the order of operations properly