Abstract 'changed' array and prompt function