Yes, only this function for now, since most of the time is spent in this function.