Maybe @jrogelstad can comment as to whether what I'm doing is ok or dangerous.