Add readonly checks for auto functions