Timer working and fix the issue with main stacking