Updated check script

Can now specify time span to check