Moved video length to function and added time representation