Added scan time display and cancellation; fixed some bugs