Refactor rtt into method.