Added health, and optimized code a lot