Removed unused scripts
Cleaned unused code