new code with time stamps for study by Brandon.
Written by Erlebacher.