Handle location allocation and closing
Version 0.3.0