Start of the initialization. Still need to handle allocation and initialization.
Also need to add free commands.