Changed from var to int