Tried to make SSH session monitoring more efficient.