Some empty lines would help with readability in this function.