Converted static hour labels to for-loop