How lawmakers cope with long hours in session