Moved first_point functions to source and simplified headers.