Now properly returns number of free slots