Fixed error handling, hashmap null handling, and also changed up structure for scripts.