Fixed alignment issues. Added event line drawing.