Moved code outside header block