Added steps support to adapter and reformatted code