Adds step function with processing of bugs!