Added a static media
Moved the code to top level