Style iteration. Made sidebar code optionally run