experimented with setTimeout function, almost have it sort of working.