Updated repository to Generic Type.