Hopefully fixed undefined port/method problem