Moved logic to numbers, it has docs is seems OK