added a line to check for Action used or not.