Updating main based off NFQ example