Added a generic type for code readability.