Added intialization subroutine