Implemented getLatency method :)