Added functions

Added setAction function