Made D. Crockford happy + better error handles