Cleaned up the code and translated comment