Rewrite part of makeDF to be faster by using plyr.