Make it work for private fields as well