Modified old version to work on laptop.