I understaned. Moved the code to separate file.