Added pre and post processors support and fixed some minor bugs