Fixed integer check.

It wasn;t even finished, how could I push this.