Fixed compile issue
Basic allocation working