Simplified code a little bit.

I think it's better when it's less code :)