Deprecating old code
Using generic types