Added stylesheet reference to function.