Figuring out timing. Think i have to use setTimeout