Change SUCCESS and ERROR to be success and error