Added win functionality