Simplified and using types for posts.
Corrected file ext on script file processing.