Original functions. Need some debugging.