Implemented closing and extending the staff lines.