[master] Change gco function to accept different arguments