Added code for add osd, requires testing