Add src_prepare() as suggested by Luca.