Rename 'allocate' to 'create'
Remove unneeded if statement