Adding exec function