Added a parameter to change obstacles and lines size