Some basic functions for thoughts