Added junction to juncion function beta. No form of error recovery as yet.