basic functionality implemented.How do we fix the lag?