First stage of viewport implemented