Rename functions and add code.action()