TODO: Further testing and understand manipulation find_firstof()