Change 'format' to 'mode', so it all works again