Moved code out of callback in readme