Add create function functionality [WIP]