Basic functions finished.