TimeCounter added and added algorithms to constructors