Added ability to create machine via api