Updated code for VirtualBox environment.