Make method public so it can be used in an observer