Updated led functions.