Implemented relative addressing in rules