Improved pInput class