Adding checkout related functions