Change the pattern to Event Based