Change add_aw_fun/1 to add_allowed_methods_fun/1