Set format automagically