Helper functions for gists