Added error runtime function