Added local replacement patterns