Added constructor
Adapted to viewport