Added timeout parameter to service invocation