Changed to Int for easier testing.