Implement resource preprocessor