This is the one I'm slightly unsure of - was there a reason we were casting it to an int?