Added logging on allocation