Since the code requires the input to be case-sensitive, I think I'll change this line to the following to better comply with that requirement:

	term = "created_at" if term == "Time"