Completed the hdr loader part.