Exection

Added the smart execution code