Implement g*, g#