Changed API device-dependent code to CT code