Added the analog redstone functionality