Separated main package to ar and viewer.