Added functions.
tmp control flow