Porting few draw functions.