Use rbind.fill instead of ldply, it's faster. Formatting