Fixed an issue with generics in the Client and Worker implementations.