Added tint and shade functions.