added millisecond timer generator for debug
added function to move attributes to end of zkb call