Added input array and renamed messages