Add useMock for mock builds