Changed the type params as suggested by @pthariensflame