Added GPU fix and fixed multiple frame input