Need to get rid of exec and call this function exec.