Fixed some problems. Added more status information.