Added parsing for inputs with error checking on record type