Fixed hashbang function