Split code in order to make it a bit more readable.