Wrote withdraw for all the functions