Added video initialisation and cleanup