Some code refractor.