Moved box type to seperate file.