Added Chackout Functionality and Mailer