Added possibility to change from weekly to daily resolution