Still trying to fix spell function.