Fixed return type for wrapPlayer