Added custom parameters

Added custom resource ID output, and DEBUG mode in snippet