Finished implementation of element API