Sample range
Changed login and logout interfaces