Manifest code now working completely