Updated with videorecording working