Commented & cleaned up.