Win functionality added