Added Energy Hook

Based on the closed merge pull request created by oxguy3 and closed by himself