Simplified script to return only spaces available