Completed gist implementation.