Added function for chroot