Added pre-parse processing and post-parse processing code