Update pattern functions