:gb: Implemented time delta calculator and crude scratching logic