This chunk of code seems a bit verbose.