Refactored to gist embed