Added input functions