Edited example.yaml
Added getJOffset function
Implemented initial branching