Applied some modification:
- Generalization of APIs
- Reading key from setting file