Simplifying getting data from config
Avoiding division by zero