Added prototyping-lever error checks