Added ilog function.