Removed needless warning
Using generics