Add check for rebased