Added Motor realted code