Making sure the order of operations is correct