External dependencies and draw function were added