Implemented find_fork function