Priview version. Only a few functions.