Added chroot setting up functions.