Added int cast to avoid compiler error.