Updated to safer variant for obj and bin.