Some minor changes.
Added timer lib.