Code has weird bugs. Fixed.