Changing var names to story_id and story_type