Give method body.

This lookes cleaner, especially after such a big if statement.