Won't this cause the function to just return a constant based on the argument provided rather than returning the actual state?