Refactored the #frm method. Seems to still be working fine.