Functions bugs.