Printing subroutines added