Added funWithAction()