Working, tested pipi_stacking complete. Results added, function is synthesizable!