Added executeAction api and added option for logging