Replace decorator with this one to work around 'stack level too deep' message