Use basename instead of substrate