Position changed to use array index only instead of assuming string input.