Made function definition simplest
Removed redundant addprojectpath
Modified box limitation