Init r logic
Init guard