Improved code of Scoper a bit