Cleaned up error handling, added IEX function.