Applying a precursor material