Rough code for mincbeast and mincpik.