Expand source at the beginning of the function.