Fixed scripts, permissions & random bugs