Can this function be simplified further??

Printable View