Prepared code for time consumption testing.