Removed getNextFreePoint funciton