This code is better to read and maintain.