Create functions for gist