Change execv to execvp
Add function