Added helper functions for shaders.