Added homedirectory parameter