Extended custom_logic.md documentation.