Adding middleinput for testing.