Added error check for assemblies.