Added enum for action type.