Change type of thisArg to any