Function executeFunction