Small formatting changes. Added wait action and some item conditions.