Changed InputReceiver to correctly accept the type of operation. Changed some Constants as well.