Added filename as an argument to time(); updated scripts.