Added error indicator. Wrapped several methods in async context. Removed debugging stuff