Clean up the code and remove not used scripts