Paint macros and foreach, field arrangement and saving external file