Making a flowchart. (Warning: contains profanity.)