Getting the target in the process function
Supporting more actions