Fixed bug in allowXForward-function
Removed system.out