Extracing frame finder into its own package and using it.