Moved getting service to method