Add saving patterns as lead-up to gui