This function does not return the free space but should be a dom request.