Added homedir param