Core implementation of hardware layer.