Changed toggle method to patch