Added addLineOnTop method