Input sampling