Using context in service