Added handwriting detection work