Added Timer class for testing execution speed.