Added session timeouts. Added TAIL premission.