Finish foreground functions