Improved file joining, and extensions added.