Added optional path argument for init.