Sessionss: optimized input processing routine.