1) Better error handling
2) Add detail access log