Core logic for behave
